package main

func kidsWithCandies(candies []int, extraCandies int) []bool {
	l := len(candies)
	maxCan := 0
	b := make([]bool, l)
	for i := 0; i < l; i++ {
		if candies[i] > maxCan {
			maxCan = candies[i]
		}
	}
	for i := 0; i < l; i++ {
		if candies[i]+extraCandies >= maxCan {
			b[i] = true
		} else {
			b[i] = false
		}
	}
	return b
}

func main() {

}
